<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>格式化字符串</title>
</head>
<body>
    <script>
        const name = 'jack'
        const age = 19
        const gender = '男'

        console.log('姓名:'+name + ' 年龄:' + age + '性别:'+gender)
        console.log(`姓名:${name} 年龄:${age} 性别:${gender}`)
    </script>
</body>
</html>